package com.alks.function.data.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@NoArgsConstructor
@ToString
public class PcLotHeadCountDto {

    @ApiModelProperty("订单总数量")
    private Integer orderCount;

    @ApiModelProperty("预补总数量")
    private Integer surplusCount;

    @ApiModelProperty(value = "收料总数量")
    private Integer sunInQty;

    @ApiModelProperty(value = "发料总数量")
    private Integer sunOutQty;

    public void setZero() {
        if (orderCount == null) {
            orderCount = 0;
        }
        if (surplusCount == null) {
            surplusCount = 0;
        }
        if (sunInQty == null) {
            sunInQty = 0;
        }
        if (sunOutQty == null) {
            sunOutQty = 0;
        }
    }
}
